<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>proxy this</title>
  </head>
  <body></body>
</html>
<script>
  const user = {
    name: '张三',
    getName() {
      console.log('this...', this)
      return this.name
    }
  }
  const proxyUser = new Proxy(user, {})
  user.getName() // this 是 user
  proxyUser.getName() //this 是 proxy
</script>
